VERSION 5.00
Begin VB.Form frmLogin 
   Caption         =   "Form1"
   ClientHeight    =   2280
   ClientLeft      =   8205
   ClientTop       =   5730
   ClientWidth     =   3045
   LinkTopic       =   "Form1"
   ScaleHeight     =   2280
   ScaleWidth      =   3045
   Begin VB.CommandButton btnBack 
      BackColor       =   &H00C0C0C0&
      Caption         =   "Back"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   186
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   1800
      Width           =   1335
   End
   Begin VB.PictureBox containerLogin 
      Appearance      =   0  'Flat
      BackColor       =   &H000080FF&
      ForeColor       =   &H80000008&
      Height          =   1575
      Left            =   120
      ScaleHeight     =   1545
      ScaleWidth      =   2745
      TabIndex        =   0
      Top             =   120
      Width           =   2775
      Begin VB.CommandButton btnLogin 
         Caption         =   "Login"
         BeginProperty Font 
            Name            =   "Arial Narrow"
            Size            =   11.25
            Charset         =   186
            Weight          =   400
            Underline       =   0   'False
            Italic          =   -1  'True
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   720
         TabIndex        =   3
         Top             =   1080
         Width           =   1335
      End
      Begin VB.TextBox txtUserLog 
         BeginProperty Font 
            Name            =   "Arial Narrow"
            Size            =   9.75
            Charset         =   186
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   120
         TabIndex        =   2
         Text            =   "Username"
         Top             =   120
         Width           =   2535
      End
      Begin VB.TextBox txtPassLog 
         BeginProperty Font 
            Name            =   "Arial Narrow"
            Size            =   9.75
            Charset         =   186
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   120
         PasswordChar    =   "#"
         TabIndex        =   1
         Text            =   "Password"
         Top             =   600
         Width           =   2535
      End
   End
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub btnBack_Click()
frmMainMenu.Show
Call Unload(Me)
End Sub

Private Sub btnLogin_Click()
    On Error GoTo canceled
    If Not IsConnected Then _
        Call ConnectToServer
    Dim secword As String
    secword = InputBox("Security Word", GAME_NAME, vbNullString)
    If secword = vbNullString Then Exit Sub
    If IsConnected Then
        Call CMD_LoginUser(txtUserLog.text, txtPassLog.text, secword)
    Else
        Call MsgBox("You Are Not Connected To GameSever!", vbOKOnly, GAME_NAME)
    End If
canceled:
End Sub

Private Sub txtPassLog_DblClick()
txtPassLog.text = vbNullString
End Sub

Private Sub txtUserLog_DblClick()
txtUserLog.text = vbNullString
End Sub
